cmake_minimum_required(VERSION 3.26)
project(Free3DEditor)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

set(CMAKE_PREFIX_PATH "/opt/Qt/6.6.0/gcc_64/lib/cmake")

find_package(Qt6 COMPONENTS Core Gui Widgets REQUIRED)
find_package(OpenCV REQUIRED)

add_executable(${PROJECT_NAME}
        src/main.cpp
        src/mainwindow.h
        src/mainwindow.cpp
        src/mainwindow.ui
)

target_link_libraries(${PROJECT_NAME} Qt::Core Qt::Gui Qt::Widgets ${OpenCV_LIBS})